<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="utf-8">
        <style type="text/css">
        ::selection {
            background: #282828;
            color:#fff;
        }
        </style>
    </head>
    <body>
        <div style="width=1350px height=640px color">
        <form action="/thinkphp/firstproject/index.php/Home/Index//article_submit" method="POST">
              <div align="center" style="width: 1000px; height: 70px;">
                    <p><b>请输入标题</b></p>
                    <input type="text" name="text" value="" size="96" style=" font-size: larger;">
              </div >
              <div align="center" style="background-color: red; width: 1000px; height: 540px;">
                    <textarea name="article"  style="height: 535px; width: 1000px; font-size: x-large; background-color: #282828; color: #ffffff;"></textarea>
              </div>
              <div align="center" style="width: 1000px; height: 30px;">
                    <input type="text" name="article_id" placeholder="ID" >
                    <input style="padding: 0px; border: 10px solid #BD916F; background-color: #BD916F; color: #282828; cursor: pointer;" 
                    type="submit" name="submit" value="确认提交"/>
                    <input type="text" name="articles_article_id" placeholder="Article-Id" >
              </div>
        </form>
        </div>
    </body>
</html>
<!--<html>
<head>
    <script type="text/javascript" src="/thinkphp/firstproject/Public/Js/Base.js"></script>
    <script type="text/javascript" src="/thinkphp/firstproject/Public/Js/prototype.js"></script>
    <script type="text/javascript" src="/thinkphp/firstproject/Public/Js/mootools.js"></script>
    <script type="text/javascript" src="/thinkphp/firstproject/Public/Js/CheckForm.js "></script>
    <script type="text/javascript" src="/thinkphp/firstproject/Public/Js/Ajax/ThinkAjax.js"></script>
<script type="text/javascript">
  function add(){
    alert("w");
    //ThinkAjax.sendForm(表单ID,URL,回调函数,信息显示的地方);
    ThinkAjax.sendForm('frm','/thinkphp/firstproject/index.php/Home/Index/addtwo',wc,'list');
    //var ids = document.getElementByIdx_x("title").value; 
    //ThinkAjax.send('/thinkphp/firstproject/index.php/Home/Index/addtwo','ajax=1&ids='+ids,wc,'frm');
  }
  function wc(data,status){
    var s=data;
    alert(typeof status);
    if(status!=1){
        alert('发送失败');
    }else{
        alert('发送成功');
    } 
  }
</script>
 
</head>
<body>
<div id="list" style="display: block; top: 0px; right: 5px; opacity: 1; visibility: visible;"></div>
<form action="" method="POST" id="frm">
 标题：<input type="text" name="title" /><br />
 信息：<input type="text" name="message" /><br />
 返回：<input type="text" name="test" /><br/>
 <input type="hidden" name="ajax" value="1">
    <input type="button" value="提交" onclick="add()"/>
 <a href="testsql">tiao</a>

</form>
</body>
</html>-->